boom = {name = "boom"}

function boom:update(simulation, todo)
   if (simulation.nb_action > 0) then
      todo:vendre(simulation, simulation.nb_action);
   else
      todo:passe(simulation)
   end
end